package com.jjy.service.impl;


import com.jjy.dao.impl.UserDaoImpl;
import com.jjy.pojo.User;
import com.jjy.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("userService")
public class UserServiceImpl implements UserService{

  @Resource
  private UserDaoImpl userDaoImpl;

  @Override
  public User selectUserById(int userId) {
    return this.userDaoImpl.selectUserById(userId);
  }

  @Override
  public int createUser(User user) {
    return this.userDaoImpl.createUser(user);
  }

  @Override
  public List<User> selectUserByParams(User user) {
    return this.userDaoImpl.selectUserByParams(user);
  }
}